import request from '@/utils/request'

let SysUploadApi = {
    category(data, errorback) {
      return request._post('/sys/upload/category', data, errorback)
    },
    addCategory(data, errorback) {
      return request._post('/sys/upload/addCategory', data, errorback)
    },
    updateCategory(data, errorback) {
      return request._post('/sys/upload/updateCategory', data, errorback)
    },
    deleteCategory(data, errorback) {
      return request._post('/sys/upload/deleteCategory', data, errorback)
    },
    fileList(data, errorback) {
      return request._post('/sys/upload/fileList', data, errorback)
    },
    /*上传*/
    uploadFile(formData, errorback) {
      return request._upload('/sys/upload/image', formData, errorback);
    },
    deleteFile(data, errorback) {
      return request._post('/sys/upload/deleteFile', data, errorback)
    },
    deleteFiles(data, errorback) {
      return request._post('/sys/upload/deleteFiles', data, errorback)
    },
    moveFiles(data, errorback){
      return request._post('/sys/upload/moveFiles', data, errorback)
    }
}
export default SysUploadApi